* {
  margin: 0;
  padding: 0;
}
body {
  overflow: hidden;
  cursor: url('../img/pen32.ico') 16 16, auto;
}
li {
  list-style: none;
}
#canvas {
  background: #eacdb0;
  display: block;
  position: fixed;
  top: 0;
  left: 0;
}
.box {
  position: fixed;
  top: 10px;
  left: 10px;
}
.paint,
.download {
  border: none;
  border-radius: 30px;
  font-size: 30px;
  width: 30px;
  height: 30px;
  margin: 5px;
  transition: all 0.3s;
}
.paint:hover,
.bin:hover,
.download:hover,
.eraser:hover {
  transform: scale(1.15);
  transform: rotate(60deg);
  transition: all 0.3s;
  cursor: pointer;
}
.active {
  transform: scale(1.5);
  transition: all 0.3s;
}

/* 颜色 */
.colorsBox {
  position: fixed;
  top: 120px;
  left: 70px;
  display: none;
}
.colorsBox li {
  width: 20px;
  height: 20px;
  border-radius: 20px;
  margin: 10px 0;
}
.colorsBox li:hover {
  transform: scale(1.2);
  transition: all 0.1s;
  cursor: pointer;
}
.black {
  background: #474747;
}
.red {
  background: #db7b65;
}
.pur {
  background: #a5678e;
}
.blue {
  background: cadetblue;
}
.green {
  background: #255f63;
}
.yellow {
  background: #ecb865;
}
.liActive {
  transform: scale(1.4);
  transition: all 0.3s;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
}

/* 笔迹大小 */

.sizeBox {
  position: fixed;
  left: 70px;
  top: 150px;
  width: 70px;
  display: none;
}
.sizeBox li {
  margin: 20px 0;
  transition: all 0.5s;
}
.sizeBox li:hover {
  transform: scale(0.9);
  transition: all 0.1s;
  cursor: pointer;
}
.sizeBox .small {
  border-top: 6px solid white;
  border-radius: 6px;
}
.sizeBox .normal {
  border-top: 10px solid white;
  border-radius: 6px;
}
.sizeBox .normal {
  border-top: 15px solid white;
  border-radius: 10px;
}
.sizeBox .strong {
  border-top: 25px solid white;
  border-radius: 18px;
}
.sizeBox .XXL {
  border-top: 35px solid white;
  border-radius: 20px;
}
.sizeActive {
  width: 50px;
  transition: all 1s;
}

/* 橡皮擦 */
.eraserBox {
  position: fixed;
  left: 70px;
  top: 120px;
  display: none;
}

.eraserPicActive {
  transform: scale(1.2);
  transition: all 0.1s;
}
.eraserBox ul {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.eraserBox ul li {
  margin: 5px 0;
}
.eraserBox li:hover {
  transform: scale(1.2);
  transition: all 0.1s;
  cursor: pointer;
}
.eraserBox .small {
  background: white;
  width: 10px;
  height: 10px;
  border-radius: 10px;
}
.eraserBox .mid {
  background: white;

  width: 20px;
  height: 20px;
  border-radius: 20px;
}
.eraserBox .big {
  background: white;
  width: 30px;
  height: 30px;
  border-radius: 30px;
}
.eraserActive {
  border: 2px solid grey;
  transition: all 1s;
}
.footer {
  position: fixed;
  bottom: 20px;
  left: 8px;
  display: flex;
  align-items: center;
}
.bin {
  width: 36px;
  height: 36px;
}
